package router

import (
	"github.com/gin-gonic/gin"
	"zy2/handler"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.POST("/add", handler.Add)
	r.GET("/del", handler.Del)
	r.GET("/list", handler.List)
	r.POST("/upload", handler.Upload)
	return r
}
